﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.RobotJog.Controls.ColumnDefinitionEx
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Windows.Controls;


namespace DnProcessSimulateCommands.RobotJog.Controls;

public static class ColumnDefinitionEx
{
  public static int Index(this ColumnDefinition column)
  {
    int num = 0;
    if (column.Parent is Grid parent)
      num = parent.ColumnDefinitions.IndexOf(column);
    return num;
  }

  public static bool IsSplitter(this ColumnDefinition column)
  {
    return (column.Parent as Grid).GetChild(0, column.Index(), typeof (GridSplitter)) is GridSplitter;
  }
}
